package com.sun.module_home.net

/**
 *@author:sunc
 *@time :2025/7/30 15:59
 *@desc: 接口仓库层
 */
class HttpRepository {

    companion object {
        val instance: HttpRepository by lazy { HttpRepository() }
    }

    suspend fun getTopArticle() =
        ApiService.getInstance().getTopArticle()
    suspend fun getArticleList(page: Int) =
        ApiService.getInstance().getArticleList(page = page)

    suspend fun getWendaList(page: Int) =
        ApiService.getInstance().getWendaList(page = page)


    suspend fun getIndexList(page: Int) =
        ApiService.getInstance().getIndexList(page = page)


    suspend fun getBanners() = ApiService.getInstance().getBanners()

}